﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using MVCControlsToolkit.DataAnnotations;
using MVCControlsToolkit.Controller;
using MVCControlsToolkit.Linq;
using System.Linq.Expressions;


namespace VSA.Presentation.Models
{
    #region Models
    public class CustomerDetailModel
    {
        [Required]
        [DisplayName("CustomerId")]
        public string CustomerId { get; set; }

        [Required]
        [DisplayName("CompanyName")]
        public string CompanyName { get; set; }
    }
    public class CreateItemModel
    {
        [Required]
        [DisplayName("CustomerId")]
        public string CustomerId { get; set; }

        [Required]
        [DisplayName("CompanyName")]
        public string CompanyName { get; set; }
    }
    public class CustomerListModel
    {
        public List<Tracker<ToDoCustomerItem>> ToDoCustomerList { get; set; }
        public List<KeyValuePair<LambdaExpression, OrderType>> ToDoCustomerOrder { get; set; }

        public int Page { get; set; }
        public int PrevPage { get; set; }
        public int TotalPages { get; set; }
    }
    public class ToDoCustomerItem
    {
        [Required, CanSort, Display(ShortName = "Customer Id")]
        public string CustomerId { get; set; }

        [Required, CanSort, Display(ShortName = "CompanyName")]
        public string CompanyName { get; set; }

    }
    #endregion
}